<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: src/logagent-plugin.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">logagent-plugin.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="logagent-plugin_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html">plugin_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a31c206e0aa4c218b9d0bb1eeb6fb52b0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#a31c206e0aa4c218b9d0bb1eeb6fb52b0">PLUGIN_JSON_SIZE</a>&#160;&#160;&#160;1024</td></tr>
<tr class="separator:a31c206e0aa4c218b9d0bb1eeb6fb52b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59c9b236d2de4889b16bf6ca6daf926d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#a59c9b236d2de4889b16bf6ca6daf926d">PLUGIN_LIB_PATH_SIZE</a>&#160;&#160;&#160;256</td></tr>
<tr class="separator:a59c9b236d2de4889b16bf6ca6daf926d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49b112d25104a8dfcde5d443b599ba11"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#a49b112d25104a8dfcde5d443b599ba11">PLUGIN_LIB_NAME_SIZE</a>&#160;&#160;&#160;64</td></tr>
<tr class="separator:a49b112d25104a8dfcde5d443b599ba11"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa5b37c39a9b50a7bb0a9a79d5080f871"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#aa5b37c39a9b50a7bb0a9a79d5080f871">logagent_plugin_env_init_all</a> (struct <a class="el" href="structlist__head.html">list_head</a> *plugin_list)</td></tr>
<tr class="separator:aa5b37c39a9b50a7bb0a9a79d5080f871"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8d1a96c9c8ac1d7059da7e979d7297d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#ab8d1a96c9c8ac1d7059da7e979d7297d">logagent_plugin_env_destroy_all</a> (struct <a class="el" href="structlist__head.html">list_head</a> *plugin_list)</td></tr>
<tr class="separator:ab8d1a96c9c8ac1d7059da7e979d7297d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d88a7cd01f6d950ec032a16d4d9951a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#a8d88a7cd01f6d950ec032a16d4d9951a">logagent_plugin_config_load</a> (struct <a class="el" href="structlist__head.html">list_head</a> *plugin_list, const char *json)</td></tr>
<tr class="separator:a8d88a7cd01f6d950ec032a16d4d9951a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29da9290f7f4219121a6706106a83a27"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-plugin_8h.html#a29da9290f7f4219121a6706106a83a27">logagent_plugin_config_unload</a> (struct <a class="el" href="structlist__head.html">list_head</a> *plugin_list)</td></tr>
<tr class="separator:a29da9290f7f4219121a6706106a83a27"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a31c206e0aa4c218b9d0bb1eeb6fb52b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31c206e0aa4c218b9d0bb1eeb6fb52b0">&#9670;&nbsp;</a></span>PLUGIN_JSON_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PLUGIN_JSON_SIZE&#160;&#160;&#160;1024</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a49b112d25104a8dfcde5d443b599ba11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49b112d25104a8dfcde5d443b599ba11">&#9670;&nbsp;</a></span>PLUGIN_LIB_NAME_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PLUGIN_LIB_NAME_SIZE&#160;&#160;&#160;64</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a59c9b236d2de4889b16bf6ca6daf926d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59c9b236d2de4889b16bf6ca6daf926d">&#9670;&nbsp;</a></span>PLUGIN_LIB_PATH_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PLUGIN_LIB_PATH_SIZE&#160;&#160;&#160;256</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a8d88a7cd01f6d950ec032a16d4d9951a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d88a7cd01f6d950ec032a16d4d9951a">&#9670;&nbsp;</a></span>logagent_plugin_config_load()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_plugin_config_load </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>plugin_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>json</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>load plugin config from json string </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plugin_list</td><td>a plugin list </td></tr>
    <tr><td class="paramname">json</td><td>the plugin's json config string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a29da9290f7f4219121a6706106a83a27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29da9290f7f4219121a6706106a83a27">&#9670;&nbsp;</a></span>logagent_plugin_config_unload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_plugin_config_unload </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>plugin_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>unload plugin config </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plugin_list</td><td>a plugin list </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab8d1a96c9c8ac1d7059da7e979d7297d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8d1a96c9c8ac1d7059da7e979d7297d">&#9670;&nbsp;</a></span>logagent_plugin_env_destroy_all()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_plugin_env_destroy_all </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>plugin_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin global environment destory </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plugin_list</td><td>a plugin list </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa5b37c39a9b50a7bb0a9a79d5080f871"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5b37c39a9b50a7bb0a9a79d5080f871">&#9670;&nbsp;</a></span>logagent_plugin_env_init_all()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_plugin_env_init_all </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>plugin_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin global environment init </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plugin_list</td><td>a plugin list </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
